<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>个人信息</title>
		<link rel="stylesheet" type="text/css" href="__STATIC__/Home/css/personal.css"/>
		<script src="__STATIC__/js/jquery-1.8.2.min.js" type="text/javascript" charset="utf-8"></script>
		<script language="JavaScript">
			window.onload = function(){
			strYYYY = document.form1.YYYY.outerHTML;
			strMM = document.form1.MM.outerHTML;
			strDD = document.form1.DD.outerHTML;
			MonHead = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
			
			//先给年下拉框赋内容
			var y = new Date().getFullYear();
			var str = strYYYY.substring(0, strYYYY.length - 9);
			for (var i = (y-30); i < (y+30); i++) 
			//以今年为准，前30年，后30年
			{
			str += "<option value='" + i + "'> " + i + "</option>\r\n";
			}
			document.form1.YYYY.outerHTML = str +"</select>";
			
			//赋月份的下拉框
			var str = strMM.substring(0, strMM.length - 9);
			for (var i = 1; i < 13; i++)
			{
			str += "<option value='" + i + "'> " + i + "</option>\r\n";
			}
			document.form1.MM.outerHTML = str +"</select>";
			
			document.form1.YYYY.value = y;
			document.form1.MM.value = new Date().getMonth() + 1;
			var n = MonHead[new Date().getMonth()];
			if (new Date().getMonth() ==1 && IsPinYear(YYYYvalue)) n++;
			writeDay(n); 
			//赋日期下拉框
			document.form1.DD.value = new Date().getDate();
			}
			function YYYYMM(str) 
			//年发生变化时日期发生变化(主要是判断闰平年)
			{
			var MMvalue = document.form1.MM.options[document.form1.MM.selectedIndex].value;
			if (MMvalue == ""){DD.outerHTML = strDD; return;}
			var n = MonHead[MMvalue - 1];
			if (MMvalue ==2 && IsPinYear(str)) n++;
			writeDay(n)
			}
			function MMDD(str) 
			//月发生变化时日期联动
			{
			var YYYYvalue = document.form1.YYYY.options[document.form1.YYYY.selectedIndex].value;
			if (str == ""){DD.outerHTML = strDD; return;}
			var n = MonHead[str - 1];
			if (str ==2 && IsPinYear(YYYYvalue)) n++;
			writeDay(n)
			}
			function writeDay(n) 
			//据条件写日期的下拉框
			{
			var s = strDD.substring(0, strDD.length - 9);
			for (var i=1; i<(n+1); i++)
			s += "<option value='" + i + "'> " + i + "</option>\r\n";
			document.form1.DD.outerHTML = s +"</select>";
			}
			function IsPinYear(year)
			//判断是否闰平年
			{ return(0 == year%4 && (year%100 !=0 || year%400 == 0))}
//-->	</script>
		<include file="__VIEW__/Common/header.html" />
<!--个人中心开始-->
<div id="myself">
	<!--左侧-->
	<div class="my_left">
		<div class="div_1">
			<div><img src="__ROOT__/{$info.face}" style="width: 100px;height: 100px;"/></div>
			<div class="zhezhao"></div>
			<p>{$hd.session.username}</p>
			<span></span>
		</div>
		<div class="div_2">
			<a href="{|U:'Search/index'}">我的订单</a>
			<ul>
				<li><a href="">全部订单</a></li>
				<li><a href="">待付款</a></li>
				<li><a href="">待收货</a></li>
				<li><a href="">待评价</a></li>
				<li><a href="">退货退款</a></li>
			</ul>
		</div>
		<div class="div_3">
			<a href="{|U:'Search/addRess'}">地址管理</a>
		</div>
		<div class="div_4 div_all">
			<a href="{|U:'Search/personal'}">基本信息</a>
		</div>
		<div class="div_4 div_all">
			<a href="{|U:'Search/alter'}">修改头像</a>
		</div>
	</div>
	<!--右侧-->
		
	<div class="my_right">
		<div class="mr_top">基本资料</div>
		<div class="mr_bottom">
			<form action="{|U:'search/person'}" method="post" name=form1>
				<dl class="dl_1">
					<dt>昵称：</dt>
					<dd><input type="text" name="nickname"/></dd>
				</dl>
				<dl class="dl_2">
					<dt>性别：</dt>
					<dd>
						<label for="women"><input type="radio" name="sex" id="women" value="女"/>女</label>
						<label for="man"><input type="radio" name="sex" id="man" value="男"/>男</label>
					</dd>
				</dl>
				<dl class="dl_3">
					<dt>生日:</dt>
					<dd>
						<select name=YYYY onchange="YYYYMM(this.value)">
							<option value="">年</option>
						</select>&nbsp;&nbsp;年
						<select name=MM onchange="MMDD(this.value)">
							<option value="">月</option>
						</select>&nbsp;&nbsp;月
						<select name=DD>
							<option value="">日</option>
						</select>&nbsp;&nbsp;日
					</dd>
				</dl>
				<dl class="dl_4">
					<dt>自我介绍：</dt>
					<dd><textarea name="content" placeholder="随便写点什么，让大家了解你吧"/></textarea></dd>
					<dd class="buttom"><input type="submit" value="确认修改"/></dd>
				</dl>
			</form>
		</div>
	</div>
</div>
<!--个人中心结束-->

<!-- 底部文字 -->
<div id="b_font">
	<div class="bb_font">
		<div class="b_font_l">
			<a href="" class="bone"></a>
			<p>营业执照注册号：<a href="">330106000129004</a></p>
			<p>增值电信业务经营许可证：<a href="">浙B2-20110349</a></p>
			<p>ICP备案号：浙ICP备10044327号-3</p>
			<p>©2015 Mogujie.com 杭州卷瓜网络有限公司</p>		
		</div>
		<div class="b_font_r">
			<dl>
				<dt>公司</dt>
				<dd><a href="">关于我们</a></dd>
				<dd><a href="">招聘信息</a></dd>
				<dd><a href="">联系我们</a></dd>
			</dl>  

			<dl>
				<dt>消费者</dt>
				<dd><a href="">帮助中心</a></dd>
				<dd><a href="">意见反馈</a></dd>
				<dd><a href="">手机版下载</a></dd>
			</dl>
			<dl>
				<dt>商家</dt>
				<dd><a href="">免费开店</a></dd>
				<dd><a href="">商家入驻</a></dd>
				<dd><a href="">管理后台</a></dd>
			</dl>
			<dl class="llast">
				<dt>权威认证</dt>
				<dd>
					<a href="" class="llast-1"></a>
					<a href="" class="llast-2"></a>
					<a href="" class="llast-3"></a>
				</dd>
			</dl>
		</div>
	</div>
</div>




<!-- 底部文字结束 -->
</body>
</html>
